home *** CD-ROM | disk | FTP | other *** search
- program main;
- uses fgmain, fgmisc;
-
- const
- WIDTH : integer = 40;
- COLORS : integer = 16;
-
- var
- base : integer;
- color : integer;
- minx, maxx : integer;
- mode : integer;
-
- begin
- mode := fg_getmode;
- fg_setmode(16);
-
- base := 0;
- minx := 0;
- maxx := WIDTH - 1;
-
- for color := 0 to COLORS-1 do
- begin
- fg_palette(color,0);
- fg_setcolor(color);
- fg_rect(minx,maxx,0,349);
- minx := maxx + 1;
- maxx := maxx + WIDTH;
- end;
-
- while (base < COLORS*4) do
- begin
- color := 0;
- for color := 0 to COLORS-1 do
- fg_palette(color,base+color);
- base := base + COLORS;
- fg_waitkey;
- end;
-
- fg_setmode(mode);
- fg_reset;
- end.